package com.sugar.MultiThread.a06threadmethod3;

/**
 * @author felix
 * @date 2025/2/26 09:33
 */
public class ThreadDemo {
    public static void main(String[] args) {
        MyThread1 t1 = new MyThread1();
        MyThread2 t2 = new MyThread2();

        t1.setName("女神");
        t2.setName("舔狗");

        //设置为守护线程
        t2.setDaemon(true);

        t1.start();
        t2.start();
    }
}
